#include <iostream>
#include <fstream>
#include <sstream>

/*/int main (int argc, char ** argv) {
  using namespace std;

  string buff;
  istringstream line;
  ifstream is (argv[1]);

  getline(is, buff);
  getline(is, buff);

  while(getline(is, buff)) {
    line.clear();
    line.str(buff);

    double d, sum = 0;
    line >> d;
    line >> d;
    line >> d;
    line >> d;
    line >> d;

    while(line >> d) {
      //cout << "sum = " << sum << " ; d = " << d << endl;
      sum += d;
    }
    cout << "sum = " << sum << endl;
  }

  return 0;
}
*/